package 并发编程10.final域里面的重排序问题;

/**
 * 重排序的一些测试
 * @author idea
 * @data 2019/1/26
 */
public class ResetTest {

    int i;

    final int j;


    public ResetTest() {
        this.j = 10;
        i=30;
    }

    public static void read(){
        ResetTest resetTest=new ResetTest();
        System.out.println("j="+resetTest.j+"  i="+resetTest.i);
    }

    public static void write(){
        ResetTest resetTest=new ResetTest();
//        System.out.println("write!!!");
    }

}
